import Vue from 'vue'
import VueRouter from 'vue-router'
// 登录
import LoginView from "@/views/login/LoginView.vue";
// 首页
import ShouYeView from "../views/index/ShouYeView.vue";
// 门店
import MenDianView from "../views/mendian/MenDianView.vue";
import ZhuCe from "@/views/login/ZhuCe.vue";
import Pingjia from "@/views/mendian/Pingjia.vue";
import MendiandtxxView from "@/views/mendian/MendiandtxxView.vue";

// 分类
import FenLei from "@/views/category/FenLeiView.vue";
import PackageSettlement from "@/views/category/PackageSettlement.vue";
import SelectStore from "@/views/category/SelectStore.vue";
import ProductDetails from "@/views/category/ProductDetails.vue";
import OrderPrice from "@/views/category/OrderPrice.vue";

//我的
import woDeView from "../views/wode/WoDeView.vue";
import MemberCenter from "@/views/wode/MemberCenter.vue";
import TuanZhang from "@/views/wode/TuanZhang.vue";
import GeRen from "@/views/wode/GeRen.vue";
import Coupon from "@/views/wode/Coupon.vue";
import OrderInfo from "@/views/category/OrderInfo.vue"
import Points from "@/views/wode/points.vue";

import VehiclesView from "../views/index/VehiclesView.vue";
// 清洗
import QingXiView from "../views/index/QingXiView.vue";
// 服务
import FuWuView from "../views/index/FuWuView.vue";
// 门店详情
import MendianXqView from "../views/mendian/MendianXqView.vue";
import MendiandituView from "@/views/mendian/MendiandituView.vue";
import Juli from "@/views/mendian/Juli.vue";
import QianggouView from "@/views/mendian/QianggouView.vue";
import GengduoView from "@/views/mendian/GengduoView.vue";
// 保养
import BaoyangView from "../views/index/BaoyangView.vue";
// 招募
import ZhaoMuView from "../views/index/ZhaoMuView.vue";
// 订单
import DingDanView from "../views/index/DingDanView.vue";
// 特价拼团
import PinTuanView from "../views/index/PinTuanView.vue";
import TeJiaPinTuanView from "../views/index/TeJiaPinTuanView.vue";
// 微信支付
import Wxprice from "../views/WxZhfu/Wxprice.vue";
import ZhiFuChengGong from "../views/WxZhfu/ZhiFuChengGong.vue";

import {quillEditor} from 'vue-quill-editor';
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';

Vue.use(quillEditor);

import Vant from 'vant';
import 'vant/lib/index.css';
import OnChatView from "@/views/index/OnChatView.vue";
import KeFuView from "@/views/index/KeFuView.vue";

import Address from "@/views/wode/Address.vue";
import BrowseHistory from "@/views/wode/BrowseHistory.vue";
import ChangJian from "@/views/wode/ChangJian.vue";
import Shezhi from "@/views/wode/Shezhi.vue";
import yijian from "@/views/wode/Yijian.vue";
import pin from "@/views/wode/Pin.vue";
import Pin from "@/views/wode/Pin.vue";
import Jifen from "@/views/wode/Jifen.vue";
import YuE from "@/views/wode/YuE.vue";
import Ji from "@/views/wode/Ji.vue";
import FenXiao from "@/views/wode/FenXiao.vue";
import ShenQingFenXiao from "@/views/wode/ShenQingFenXiao.vue";
import NianShenView from "@/views/index/NianShenView.vue";
import MapView from "@/views/index/MapView.vue";
import ShoppingMapView from "@/views/index/ShoppingMapView.vue";
import BaoXianView from "@/views/index/BaoXianView.vue";
import JiaYouZhanView from "@/views/index/JiaYouZhanView.vue";
import ChongDianZhuangView from "@/views/index/ChongDianZhuangView.vue";
import HuoDongView from "@/views/index/HuoDongView.vue";
import XianShiMiaoShaView from "@/views/index/XianShiMiaoShaView.vue";

import ShangPinShouCang from "@/views/wode/ShangPinShouCang.vue";


Vue.use(Vant);
Vue.use(VueRouter)

const routes = [
    {
        path: '/fenlei',
        name: 'fenlei',
        component: FenLei
    },
    {
        path: '/changjian',
        name: 'changjian',
        component: ChangJian
    },
    {
        path: '/tuanzhang',
        name: 'tuanzhang',
        component: TuanZhang
    },
    {
        path: '/baoyang',
        name: 'baoyang',
        component: BaoyangView
    },
    {
        path: '/Wxprice',
        name: 'Wxprice',
        component: Wxprice
    },
    {
        path: '/chenggong',
        name: 'chenggong',
        component: ZhiFuChengGong
    },
    {
        path: '/pintuan',
        name: 'pintuan',
        component: PinTuanView
    },
    {
        path: '/tejiapintuan',
        name: 'tejiapintuan',
        component: TeJiaPinTuanView
    },
    {
        path: '/dingdan',
        name: 'dingdan',
        component: DingDanView
    },
    {
        path: '/zhaomu',
        name: 'zhaomu',
        component: ZhaoMuView
    },
    {
        path: '/address',
        name: 'address',
        component: Address
    },
    {
        path: '/map',
        name: 'map',
        component: MapView
    },
    {
        path: '/browseHistory',
        name: 'browseHistory',
        component: BrowseHistory
    },
    {
        path: '/xsms',
        name: 'xsms',
        component: XianShiMiaoShaView
    },
    {
        path: '/geren',
        name: 'geren',
        component: GeRen
    },
    {
        path: '/huodong',
        name: 'huodong',
        component: HuoDongView
    },
    {
        path: '/zhuce',
        name: 'zhuce',
        component: ZhuCe
    },
    {
        path: '/vehicles',
        name: 'vehicles',
        component: VehiclesView
    },
    {
        path: '/qingxi',
        name: 'qingxi',
        component: QingXiView
    },
    {
        path: '/fuwu',
        name: 'fuwu',
        component: FuWuView
    },
    {
        path: '/wode',
        name: 'wode',
        component: woDeView
    },
    {
        path: '/mendian',
        name: 'mendian',
        component: MenDianView
    },
    {
        path: '/mendianxq',
        name: 'mendianxq',
        component: MendianXqView
    },
    {
        path: '/mendiandtxx',
        name: 'mendiandtxx',
        component: MendiandtxxView
    },
    {
        path: '/pingjia',
        name: 'pingjia',
        component: Pingjia
    },
    {
        path: '/gengduo',
        name: 'gengduo',
        component: GengduoView
    },
    {
        path: '/mendianditu',
        name: 'mendianditu',
        component: MendiandituView
    },
    {
        path: '/qianggou',
        name: 'qianggou',
        component: QianggouView
    },
    {
        path: '/juli',
        name: 'juli',
        component: Juli
    },
    {
        path: '/',
        name: 'login',
        component: LoginView
    },
    {
        path: '/shouye',
        name: 'shouye',
        component: ShouYeView
    },
    {
        path: '/fenlei',
        name: 'fenlei',
        component: FenLei
    },
    {
        path: '/changjian',
        name: 'changjian',
        component: ChangJian
    },
    {
        path: '/tuanzhang',
        name: 'tuanzhang',
        component: TuanZhang
    },
    {
        path: '/baoyang',
        name: 'baoyang',
        component: BaoyangView
    },
    {
        path: '/shezhi',
        name: 'shezhi',
        component: Shezhi
    },
    {
        path: '/pin',
        name: 'pin',
        component: Pin
    },
    {
        path: '/jifen',
        name: 'jifen',
        component: Jifen
    },
    {
        path: '/fenxiao',
        name: 'fenxiao',
        component: FenXiao
    },
    {
        path: '/shenqing',
        name: 'shenqing',
        component: ShenQingFenXiao
    },
    {
        path: '/ji',
        name: 'ji',
        component: Ji
    },
    {
        path: '/yue',
        name: 'yue',
        component: YuE
    },
    {
        path: '/yijian',
        name: 'yijian',
        component: yijian
    },
    {
        path: '/Wxprice',
        name: 'Wxprice',
        component: Wxprice
    },
    {
        path: '/pintuan',
        name: 'pintuan',
        component: PinTuanView
    },
    {
        path: '/dingdan',
        name: 'dingdan',
        component: DingDanView
    },
    {
        path: '/zhaomu',
        name: 'zhaomu',
        component: ZhaoMuView
    },
    {
        path: '/address',
        name: 'address',
        component: Address
    },
    {
        path: '/browseHistory',
        name: 'browseHistory',
        component: BrowseHistory
    },
    {
        path: '/xsms',
        name: 'xsms',
        component: XianShiMiaoShaView
    },
    {
        path: '/geren',
        name: 'geren',
        component: GeRen
    },
    {
        path: '/zhuce',
        name: 'zhuce',
        component: ZhuCe
    },
    {
        path: '/vehicles',
        name: 'vehicles',
        component: VehiclesView
    },
    {
        path: '/qingxi',
        name: 'qingxi',
        component: QingXiView
    },
    {
        path: '/fuwu',
        name: 'fuwu',
        component: FuWuView
    },
    {
        path: '/wode',
        name: 'wode',
        component: woDeView
    },
    {
        path: '/shoucang',
        name: 'shoucang',
        component: ShangPinShouCang
    },
    {
        path: '/mendian',
        name: 'mendian',
        component: MenDianView
    },
    {
        path: '/mendianxq',
        name: 'mendianxq',
        component: MendianXqView
    },
    {
        path: '/',
        name: 'login',
        component: LoginView
    },
    {
        path: '/shouye',
        name: 'shouye',
        component: ShouYeView
    },
    {
        path: '/baoxian',
        name: 'baoxian',
        component: BaoXianView
    },
    {
        path: '/jiayouzhan',
        name: 'jiayouzhan',
        component: JiaYouZhanView
    },
    {
        path: '/chongdianzhuang',
        name: 'chongdianzhuang',
        component: ChongDianZhuangView
    },
    {
        path: '/Shopping',
        name: 'Shopping',
        component: ShoppingMapView
    },
    {
        path: '/onchat:id',
        name: 'onchat',
        component: OnChatView
    },

    {
        path: '/kefu:id',
        name: 'kefu',
        component: KeFuView
    },
    {
        path: '/nianshen',
        name: 'nianshen',
        component: NianShenView
    },

    {
        path: '/settlement',
        name: 'settlement',
        component: PackageSettlement
    },
    {
        path: '/SelectStore',
        name: 'SelectStore',
        component: SelectStore
    },
    {
        path: '/about',
        name: 'about',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    },
    {
        path: '/membercenter',
        name: 'membercenter',
        component: MemberCenter
    },
    {
        path: "/coupon",
        name: "/coupon"
        , component: Coupon
    },
    {
        path: '/orderinfo',
        name: 'orderinfo',
        component: OrderInfo
    },
    {
        path: "/ProductDetails",
        name: "ProductDetails",
        component: ProductDetails
    },
    {
        path: '/points',
        name: 'points',
        component: Points
    },
    {
        path: '/OrderPrice',
        name: 'OrderPrice',
        component: OrderPrice
    },
    {
        path: '/chaoshi',
        name: 'chaoshi',
        component: ChangJian
    },
]

const router = new VueRouter({
    routes
})

export default router
